<script type="text/javascript">
	//<![CDATA[
	var _status = document.getElementsByClassName('_status');
	for (var i = 0; i < _status.length; i++) {
		var id = _status[i].getAttribute("socks_id");
		XHR.get('<%=url([[admin]], [[vpn]], [[passwall]], [[socks_status]])%>', {
				index: i,
				id: id
			},
			function(x, result) {
				_status[result.index].setAttribute("style","font-weight:bold;");
				_status[result.index].setAttribute("color",result.status ? "green":"red");
				_status[result.index].innerHTML = (result.status ? '✓' : 'X');
			}
		);
	}
	//]]>
</script>